package asimes.neteasy;

import java.util.Scanner;

/**
 * Created by Liangweiwei on 2016/9/12.
 */
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        int y = in.nextInt();
        int result  = rev(x) +rev(y);
        System.out.println(rev(result));
    }

    public static int rev(int x){
        StringBuilder sb = new StringBuilder(x+"");
        sb = sb.reverse();
        return Integer.parseInt(sb.toString());
    }
}
